package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ClassroomContentMapper;
import com.ruoyi.system.domain.ClassroomContent;
import com.ruoyi.system.service.IClassroomContentService;

/**
 * 查看内容Service业务层处理
 * 
 * @author coderChen
 * @date 2024-01-09
 */
@Service
public class ClassroomContentServiceImpl implements IClassroomContentService 
{
    @Autowired
    private ClassroomContentMapper classroomContentMapper;

    /**
     * 查询查看内容
     * 
     * @param id 查看内容主键
     * @return 查看内容
     */
    @Override
    public ClassroomContent selectClassroomContentById(Long id)
    {
        return classroomContentMapper.selectClassroomContentById(id);
    }

    /**
     * 查询查看内容列表
     * 
     * @param classroomContent 查看内容
     * @return 查看内容
     */
    @Override
    public List<ClassroomContent> selectClassroomContentList(ClassroomContent classroomContent)
    {
        return classroomContentMapper.selectClassroomContentList(classroomContent);
    }

    /**
     * 新增查看内容
     * 
     * @param classroomContent 查看内容
     * @return 结果
     */
    @Override
    public int insertClassroomContent(ClassroomContent classroomContent)
    {
        return classroomContentMapper.insertClassroomContent(classroomContent);
    }

    /**
     * 修改查看内容
     * 
     * @param classroomContent 查看内容
     * @return 结果
     */
    @Override
    public int updateClassroomContent(ClassroomContent classroomContent)
    {
        return classroomContentMapper.updateClassroomContent(classroomContent);
    }

    /**
     * 批量删除查看内容
     * 
     * @param ids 需要删除的查看内容主键
     * @return 结果
     */
    @Override
    public int deleteClassroomContentByIds(Long[] ids)
    {
        return classroomContentMapper.deleteClassroomContentByIds(ids);
    }

    /**
     * 删除查看内容信息
     * 
     * @param id 查看内容主键
     * @return 结果
     */
    @Override
    public int deleteClassroomContentById(Long id)
    {
        return classroomContentMapper.deleteClassroomContentById(id);
    }
}
